﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace PMCT
{
    public partial class Options : Form
    {
        public string skinFilename = "";

        public Options()
        {
            InitializeComponent();
        }

        private void Options_Load(object sender, EventArgs e)
        {
            comboBox1.Items.Clear();
            comboBox1.Items.Add("默认风格");
            comboBox1.SelectedIndex = 0;

            if (Directory.Exists("Skin"))
            {
                string[] files = Directory.GetFiles(".\\Skin", "*.ssk");
                for (int i = 0; i < files.GetLength(0); i++)
                {
                    string fn = files[i].Replace(".ssk", "");
                    fn = fn.Replace(".\\Skin\\", "");
                    comboBox1.Items.Add(fn);
                }
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (comboBox1.SelectedIndex == 0)
                skinFilename = "";
            else
                skinFilename = ".\\Skin\\" + comboBox1.SelectedItem.ToString() + ".ssk";
        }
    }
}
